scl = 10
c = scl*0
d = scl/2
e = scl
f = int(scl*1.5)
palochka = scl*5
i = 0
list = ["f","f","e","c"]
for element in list:
	if element == "c":
		nota = c
		if list[i-2] == "f":
			palochka = palochka + scl
	elif element == "d":
		nota = d
	elif element == "e":
		nota = e
		if list[i-2] == "f":
			palochka = palochka + scl/2
	elif element == "f":
		nota = f
	i = i + 1
	print palochka
